package day2;

import java.util.LinkedList;
import java.util.List;

/**
 * @author oldliu
 * @since 1.0
 */
public class Jihe2 {
    public static void main(String[] args) {
        //List 有序，可重复。。。
        //java.util.LinkedList
        //addFirst
        //removeFirst,removeLast
        List list=new LinkedList();
        list.add("gou");
        list.add("dog");
        list.add("snake");
        list.add(2,"龙");
        list.add("狗");
        list.add("snake");
        ((LinkedList)list).addFirst("兔子");
        System.out.println(list);
    }
}
